package com.mayblackcat.dy.exception;

import lombok.NonNull;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(HttpStatus.NOT_FOUND)
public class NotFoundException extends AbstractHelloBlogException {
    public NotFoundException(String message) {
        super(message);
    }

    public NotFoundException(String message, Throwable cause, Object errorMessage) {
        super(message, cause, errorMessage);
    }

    @Override
    public @NonNull
    HttpStatus getStatus() {
        return HttpStatus.NOT_FOUND;
    }
}
